home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 2 / CU Amiga Magazine's Super CD-ROM 02 (1996)(EMAP Images)(GB)[!][issue 1996-04].iso / magazine / amiga_e / amigae.jan.archive / 000042_crash!uniwa.uwa…!multi!robbage_Tue, 18 Jan 94 01:39:53 PST.msg < prev    next >
Text File  |  1994-02-17  |  4KB  |  116 lines

  1. Received: by bkhouse.cts.com (V1.17-beta/Amiga)
  2.       id <1lyx@bkhouse.cts.com>; Tue, 18 Jan 94 01:39:53 PST
  3. Received: from uniwa.uwa.edu.au by crash.cts.com with smtp
  4.     (Smail3.1.28.1 #18) id m0pM9HE-00011RC; Mon, 17 Jan 94 21:46 PST
  5. Received: from localhost (uucp@localhost) by uniwa.uwa.edu.au (8.6.4/8.6.4) id NAA25887 for bkhouse.cts.com!AmigaE; Tue, 18 Jan 1994 13:46:53 +0800
  6. Received: by multi.multiline.com.au (Smail3.1.28.1 #6)
  7.     id m0pM8CC-0003jDC; Tue, 18 Jan 94 12:37 WST
  8. Message-Id: <m0pM8CC-0003jDC@multi.multiline.com.au>
  9. Date: Tue, 18 Jan 1994 12:37:39 +0800 (WST)
  10. In-Reply-To: <m0pLrQ3-00009bC@crash.cts.com> from "Olivier Anh" at Jan 17, 94 11:41:57 am
  11. X-Mailer: ELM [version 2.4 PL21]
  12. MIME-Version: 1.0
  13. Content-Type: text/plain; charset=US-ASCII
  14. Content-Transfer-Encoding: 7bit
  15. Content-Length: 1492
  16. From: robbage@multi.multiline.com.au (Rob Nottage)
  17. To: AmigaE@bkhouse.cts.com
  18. Subject: Re: Many Questions....
  19.  
  20. > 1 : How is it possible to create an Object with an String item in it.
  21. >      OBJECT x
  22. >         t[20] : STRING,
  23. >         l : LONG
  24. >      ENDOBJECT
  25. >     this example doesn't work....
  26.  
  27.    OBJECT x
  28.      t:LONG
  29.      l:LONG
  30.    ENDOBJECT
  31.  
  32. DEF myobject:PTR TO x
  33.  
  34. (later)
  35.   myobject.t:=String(20)
  36.  
  37. > 2 : I'using the ReqTools.library. I call the RtGetLonGA function, but de 
  38. >     returned buffer is clear....
  39. >     Example :
  40. >        buf:=0
  41. >        ok:=RtGetLongA(buf,'get long',NIL,0)
  42.  
  43. That should be  --> ok:=RtGetLongA({buf},.......
  44. note the curly braces around 'buf'
  45.  
  46. > 3 : I compiled the example WbArgs.e found in AmigaE archive. Under WB it 
  47. >      doesn't work. This program read the WB arguments you pass to this program.
  48. >      Under WB 1.3, I had a Tool icon to WbArg. I run it. The 'Output' window
  49. >      opens and closes without doing anything else. No message is written.
  50. >      Could someone explain how do I do to run a program under WB 1.3 ?
  51.  
  52. I had the same thing. I haven't tried it since, but something occured to
  53. me some time back... it's trying to get the WB 'args' not tooltypes.
  54. Have you tried selecting the icon, then while holding the LMB down, double
  55. clicking another icon?  I suspect this will work.. Have yet to try it
  56.  
  57.    ___________________________________
  58.   /                                   \
  59.   |  robbage@multiline.com.au         |
  60.   |  Rob Nottage 3:690/662.0@FidoNet  |
  61.   |             41:616/662.0@AmigaNet |
  62.   \___________________________________/
  63. From crash!informatik.tu-muenchen.de!schmidtj Tue, 18 Jan 94 01:56:50 PST
  64. Received: by bkhouse.cts.com (V1.17-beta/Amiga)
  65.       id <1lzf@bkhouse.cts.com>; Tue, 18 Jan 94 01:56:50 PST
  66. Received: from tuminfo2.informatik.tu-muenchen.de by crash.cts.com with smtp
  67.     (Smail3.1.28.1 #18) id m0pMD2x-0000aPC; Tue, 18 Jan 94 01:48 PST
  68. Received: by tuminfo2.informatik.tu-muenchen.de
  69.      via suspension id <57675>; Tue, 18 Jan 1994 10:45:20 +0100
  70. Received: from sunbroy14.informatik.tu-muenchen.de ([131.159.0.114])
  71.      by tuminfo2.informatik.tu-muenchen.de
  72.      with SMTP id <57668>; Tue, 18 Jan 1994 10:44:30 +0100
  73. Received: by sunbroy14.informatik.tu-muenchen.de id <8085>; Tue, 18 Jan 1994 10:44:12 +0100
  74. Date:    Tue, 18 Jan 1994 10:44:10 +0100
  75. In-Reply-To: <m0pLrQ3-00009bC@crash.cts.com> from "Olivier Anh" at Jan 17, 94 11:41:57 am
  76. X-Mailer: ELM [version 2.4 PL6]
  77. Content-Type: text
  78. Content-Length: 719
  79. Message-Id: <94Jan18.104412met.8085@sunbroy14.informatik.tu-muenchen.de>
  80. From: Juergen Schmidt <schmidtj@informatik.tu-muenchen.de>
  81. To: AmigaE@bkhouse.cts.com
  82. Subject: Re: Many Questions....
  83.  
  84. Hi Olivier,
  85. All I have is a answer to your first question.You wrote:
  86.  
  87. > 1 : How is it possible to create an Object with an String item in it.
  88. >      OBJECT x
  89. >         t[20] : STRING,
  90. >         l : LONG
  91. >      ENDOBJECT
  92. >     this example doesn't work....
  93.  
  94. One solution is : Do not mention the types at all.Like this:
  95.  
  96. OJBECT x
  97.  t,l
  98. ENDOBJECT
  99.  
  100. l becomes a long automatically.t can be used as string var,if you dynamically
  101. allocate the memory for it with the String()-Function,like this: 
  102.  
  103. x.t := String(EStrLen(myvar))
  104.  
  105. Where myvar is a var,that contains the string to allocate memory for.
  106. Not assigning a type to the vars is not very nice,I admit,but it works
  107. perfectly in my own program.
  108.  
  109. Greetings,
  110. Juergen